﻿<%@ Page Language="C#" MasterPageFile="~/Master/LoginMasterPage.master" AutoEventWireup="true"
    Inherits="Master_Login" Title="" CodeBehind="Login.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
        body
        {
            margin-left: 0px;
            margin-top: 0px;
            background-color: #016BA9;
        }
        body, td, th
        {
            font-size: 12px;
        }
    </style>
    <script type="text/javascript">
        if (window.parent != window) {
            window.parent.navigate(window.location);
        }
    </script>
    <script type="text/javascript">
        function CheckUser() {
            if (document.getElementById("ctl00_ContentPlaceHolder1_UserNameTextBox").value == "") {
                document.getElementById("ctl00_ContentPlaceHolder1_UserNameTextBox").focus();
                alert("请填写用户名！");
                return false;
            }
            if (document.getElementById("ctl00_ContentPlaceHolder1_UserPassTextBox").value == "") {
                document.getElementById("ctl00_ContentPlaceHolder1_UserPassTextBox").focus();
                alert("请填写密码！");
                return false;
            }
            if (document.getElementById("ctl00_ContentPlaceHolder1_txtCode").value == "") {
                document.getElementById("ctl00_ContentPlaceHolder1_txtCode").focus();
                alert("请填写验证码！");
                return false;
            }
        }

        function OpenScreenWindow(path) {
            var newpage = window.open(path, '', 'top=0,left=0,status=yes,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=yes');
            newpage.moveTo(0, 0);
            newpage.resizeTo(screen.availWidth, screen.availHeight);
            newpage.focus();
            window.opener = null;
            window.close();
        }
    </script>
    <table width="800" height="500" border="0" align="center">
        <tr>
            <td valign="top" background="../pic_psd/login_wu.jpg">
                <table width="924" border="0">
                    <tr>
                        <td width="341" height="257">
                            &nbsp;
                        </td>
                        <td width="318">
                            &nbsp;
                        </td>
                        <td width="251">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td height="130">
                            &nbsp;
                        </td>
                        <td valign="top">
                            <table width="100%" border="0">
                                <tr>
                                    <td width="20%" height="30" align="right">
                                        用&nbsp;&nbsp; 户：
                                    </td>
                                    <td width="55%">
                                        <asp:TextBox ID="UserNameTextBox" runat="server" CssClass="inp" Width="130px" Height="20px" maxlength="20" style="width: 170px;border-style: solid; border-width: 1px; padding: 1px 4px;" onmouseover="this.style.background='#E1F4EE';" onmouseout="this.style.background='#FFFFFF'"></asp:TextBox>
                                        <%--<input name="USERNAME" type="text" id="USERNAME" maxlength="20" style="width: 170px;border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1;padding-bottom: 1" onmouseover="this.style.background='#E1F4EE';" onmouseout="this.style.background='#FFFFFF'" onfocus="this.select(); ">--%>
                                    </td>
                                    <td width="25%">
                                        <asp:Button ID="btnSave" runat="server" Text=" 确&nbsp;&nbsp;认 " OnClientClick="return CheckUser();" CssClass="btn_Button" OnClick="btnSave_Click" style="font-size: 9pt;height: 19; width: 70; color: #000000; background-color: #E1F4EE; border: 1 solid #E1F4EE" onmouseover="this.style.backgroundColor='#ffffff'" onmouseout="this.style.backgroundColor='#E1F4EE'"/>
                                        <%--<input type="submit" name="Submit" value=" 确&nbsp;&nbsp;认 " style="font-size: 9pt;
                                            height: 19; width: 70; color: #000000; background-color: #E1F4EE; border: 1 solid #E1F4EE"
                                            onmouseover="this.style.backgroundColor='#ffffff'" onmouseout="this.style.backgroundColor='#E1F4EE'">--%>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" align="right">
                                        密&nbsp;&nbsp; 码：
                                    </td>
                                    <td height="25">
                                        <asp:TextBox ID="UserPassTextBox" runat="server" CssClass="inp" TextMode="Password"
                                            Width="130px" Height="20px" maxlength="20" style="width: 170px; border-style: solid;
                                            border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"
                                            onmouseover="this.style.background='#E1F4EE';" onmouseout="this.style.background='#FFFFFF'"></asp:TextBox>
                                        <%--<input name="UserPass" type="password" maxlength="20" style="width: 170px; border-style: solid;border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1" onmouseover="this.style.background='#E1F4EE';" onmouseout="this.style.background='#FFFFFF'" onfocus="this.select(); ">--%>
                                    </td>
                                    <td height="25">
                                        <asp:Button ID="Button1" runat="server" Text=" 取&nbsp;&nbsp;消 " CssClass="btn_Button" OnClientClick="window.location = '/'" style="font-size: 9pt; height: 19; width: 70; color: #000000;background-color: #E1F4EE; border: 1 solid #E1F4EE" onmouseover="this.style.backgroundColor='#ffffff'"  onmouseout="this.style.backgroundColor='#E1F4EE'" />
                                        <%--<input type="button" a href="#" onclick="window.open('zc.asp','go','status=yes,scrollbars=yes,resizable=yes,width=1100,height=700,top=100,left=235')"
                                            value="单位注册" name="B1" style="font-size: 9pt; height: 19; width: 70; color: #000000;
                                            background-color: #E1F4EE; border: 1 solid #E1F4EE" onmouseover="this.style.backgroundColor='#ffffff'"
                                            onmouseout="this.style.backgroundColor='#E1F4EE'">--%>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" align="right">
                                        验证码：
                                    </td>
                                    <td height="30" colspan="2">
                                        <asp:TextBox ID="txtCode" runat="server" Width="60px" CssClass="inp" Height="20px" maxlength="4" style="border-style: solid;border-width: 1px; padding:1px 4px;" onmouseover="this.style.background='#E1F4EE';" onmouseout="this.style.background='#FFFFFF'"></asp:TextBox>
                                        <%--<input name="CheckCode" type="text" size="23" maxlength="4" style="border-style: solid;
                                            border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"
                                            onmouseover="this.style.background='#E1F4EE';" onmouseout="this.style.background='#FFFFFF'"
                                            onfocus="this.select(); ">--%>
                                        <font color="#FFFFFF">
                                            <img id="VerifyCodeImage" src="VerifyCodeImage.aspx?ImgWidth=110&ImgHeight=35&CharMinSize=18&CharMaxSize=20" border="0" title="看不清楚请点击图片" alt="验证码" onclick="javascript:document.getElementById('VerifyCodeImage').src='VerifyCodeImage.aspx?ImgWidth=110&ImgHeight=35&CharMinSize=18&CharMaxSize=20&time='+Math.random();return false;" style="cursor:pointer; vertical-align:middle; position:absolute; margin:0 0 0 10px" /></font>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            技术支持：青海省科技信息研究所&nbsp;&nbsp; 电话：6152636
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
